{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="{% static 'bootstrap-3.3.7-dist/css/bootstrap.css' %}">
     <style>
        .account {
            width: 600px;
            margin: 0 auto;
        }
    </style>
</head>
<body>

<div class="account">
    <h1 style="text-align: center">注册</h1>


    <form >

        {% for field in form %}
            <div class="form-group">
                <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                {{ field }}

              </div>
        {% endfor %}

        <button type="submit" class="btn btn-default">提交</button>
    </form>

</div>

</body>
</html>